import logging
import os
from datetime import datetime

from automaticAI.src.config.setting import *

if not os.path.exists(setting.LOG_DIR):
    os.makedirs(setting.LOG_DIR)

logging.basicConfig(
    filename=os.path.join(setting.LOG_DIR, "app.log"),
    level=logging.INFO,
    format="%(asctime)s - %(levelname)s - %(message)s",
)

logger = logging.getLogger(__name__)
